﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;

namespace theseaturtlestore
{
    public partial class Boat_Donation : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            bp.BusinessLogic.Mail mail = new bp.BusinessLogic.Mail();
            //Confirmation page that will be sent to the user
            string msg = mail.SendMail(Server.MapPath("ContactConfirmation.html"), "mail.bpwe.net", "savetheseaturtle@yahoo.com", dfsEmail.Text,
                                      "root@bpwe.net", "Nv4c7df7", "Thank You For Supporting NATIONAL SAVE THE SEA TURTLE FOUNDATION", dfsName.Text, "",
                                      "", Guid.NewGuid(), "", "", "");



            //notification page
            mail.SendMail(Server.MapPath("ContactNotification.html"), "mail.bpwe.net", dfsEmail.Text, "savetheseaturtle@yahoo.com",
            "root@bpwe.net", "Nv4c7df7", "Memberships Notification", "NATIONAL SAVE THE SEA TURTLE FOUNDATION", "",


           "Built" + dfsBuilt.Text + "<br/>" + "Make" + dfsMake.Text + "<br/>" + "Model" + dfsModel.Text + "<br/>" + "Name" + dfsName.Text + "<br/>" + "Phone" + dfsPhone.Text + "<br/>" + "Email : " + dfsEmail.Text , Guid.NewGuid(), "", "", "");

            Response.Redirect("thankyou.aspx"); 
        }
    }
}
